<?php
class IndexController extends Zend_Controller_Action
{
    public function init()
    {
        $uri = $this->_request->getPathInfo();
        $activeNav = $this->view->navigation()->findByUri($uri);
        //$activeNav->active = true;
    }
    public function indexAction()
    {
        // index tab
        $message = $this->_getParam('m');
        if ($message) $this->view->message = $message;
        else $this->view->message = "Hello Tester";
        // fetch a user
        $u = new HWPC\Entity\User();
        var_dump($u);
    }
    public function customersAction()
    {
        // customers tab
    }
    public function ticketsAction()
    {
        // tickets tab
    }
    public function sitemapAction()
    {
        // We want an XML site map so disable the layout and render stuff
        $this->view->layout()->disableLayout();
        $this->_helper->viewRenderer->setNoRender(true);
        echo $this->view->navigation()->sitemap();
    }
}

